{% extends 'plate.html' %}
{% block plate %}
{{ block.super }}
<div class="accordian">
	<h1>Rlated plate normalised</h1>

	<div>
		<h2>Plate name / barcode:   {{ plate.plate_normalised.platename }} replicate: {{ plate.plate_normalised.replicate }}</h2>
		<a href="/p/{{ plate.plate_normalised.id }}">{{ plate.plate_normalised.platename }}</a>
		<h2>cell line:</h2>
		<p>{{ plate.plate_normalised.cellline }}</p>
		<h2>Condition:</h2>
		<p>{{ plate.plate_normalised.condition }}</p>
		<h2>Plate concentration:</h2>
		<p>{{ plate.plate_normalised.concentration }}</p>
		<h2>Data matrix:</h2>
		{{plate.plate_normalised.data.table|safe}}
	</div>

	<h2>Plate heatmap </h2>
	<div id="related_plot"></div>
</div>
<script>
var json = {{plate.plate_normalised.data.json|safe}}
</script>
<script>
draw_heatmap(json, anno, ctrls, "div#related_plot", {}, "{{screentype}}");
</script>
{% endblock %}
